package filesystem.model;

import java.io.Serializable;

public class FAT implements Serializable {

	private static final long serialVersionUID = 6953005305964695531L;


	private int[] table;
	private int freeCount = 253;
	public static final int USED_BLOCK = -1;


	public FAT() {
		this.table = new int[Disk.BLOCK_COUNT];
		this.table[0] = USED_BLOCK;
		this.table[1] = USED_BLOCK;
		this.table[2] = USED_BLOCK;
	}


	public int getFreeCount() {
		return freeCount;
	}

	public void setFreeCount(int freeCount) {
		this.freeCount = freeCount;
	}

	public int[] getTable() {
		return table;
	}

	public void setTable(int[] table) {
		this.table = table;
	}

}
